-- check for relative pathnames and convert them to absolutes
-- to support organizing files in subdirectories
set f = the soundFile of me
if (( f contains "\" ) OR ( f contains "/" )) then -- trying to specify a path
if NOT ( f contains ":" ) then -- leave absolute paths alone
set the soundFile of me = the moviePath & the soundFile of me
end if
end if
end
on getBehaviorDescription
return ¼
"Plays the designated external sound file ( AIFF or WAVE format ) when the specified event occurs." & RETURN & ¼
"PARAMETERS:" & RETURN & ¼
"ò Sound - Enter the file name of the external sound file to be played. If the file is not in the same folder as the movie, enter the relative pathname. To play a sound from the internet, enter a URL." & RETURN & ¼
"ò Channel - Enter the number of the sound channel to be used for playback." & RETURN & ¼
"ò Initializing Event - Specify the event that triggers the behavior."